not to validate the model elements, but to modeling the implementation itself so that any specific model can reuse the meta model elements. To do this, we need to extend the Ecore meta model.
Extended meta-model
This article comes with a highly simplified programming model for extending Ecore. It is not a complete or coherent meta model or framework; Strictly speaking, it is a prototype collection of elements that demonstrate the ability to use EMF to model the implementation of the Code. Fig
Ecore Model AnalysisCurrently, there are four main ways to generate the ecore model. Here we use the UML model to generate the ecore model. First, we use rose to design the EMF package, and then create the following class diagram in the package: the generated ecore model is as follows EpackageThe top-level element of the eore model is epackage, which matches the package in the UML model. The nsuri and nsprefix attributes of the
.
Epackage: In Ecore, Epackage contains information about Model classes (ECLASS) and data types (edatatype), how to get epackage instances and information about the model class is described in detail later.
Ereference: Used to describe the association relationship between classes, ereference have names, a Boolean flag bit that describes the containing relations
The GEF design does not impose any restrictions on the model part. That is to say, we can construct our own model. The only thing we need to ensure is that the model has a message mechanism so that it can communicate with each other in the event of a change.GEF (through editpart ). In the previous examples, we used the propertychangesupport andPropertychangelistener is used to implement the message mechanism. Here we will introduce how to make the model constructed by GEF using EMF (download exa
The GEF design does not impose any restrictions on the model part, that is, we can construct our own model arbitrarily, the only thing to be assured is that the model has some kind of message mechanism to be able to notify GEF (via Editpart) when the change occurs. In previous examples, we used the Propertychangesupport and PropertyChangeListener in the Java.beans package to implement the message mechanism, and here's how to get GEF to take advantage of the EMF-constructed model.
EMF uses its o
Swaggerconfiguration {//controller Interface's package private String BAS
Epackage = "Com.kingboy.controller";
Title of the current document private String title = "He is very lazy, nothing left";
Detailed description of the current document private String Description = "He is very lazy, nothing left";
The version of the current document is private String Version = "V1.0"; @Bean Public Docket Createrestapi () {return new docket (d
external network in the case of NetEase open source image search to download the corresponding RPM package to install NetEase open source image address:http://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-ivhyour-package.rpm ---installing RPM package rpm-uvhyour-package.rpm ---upgrade RPM package rpm-qpackage-name ---Check if the package is installed rpm-epackage-name--nodeps ---Uninstall a package do not check dependenciesAutomatically reso
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.